home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │jzlftstr.c │
- │Return the left n chars from a string │
- │ │
- │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950 │
- └────────────────────────────────────────────────────────────────────────────┘
- */
-
- char *jzlftstr(fstr,fnum)
- char *fstr;
- int fnum;
- {
- static char wstr[256];
-
- strncpy(wstr,fstr,fnum);
- *(wstr+fnum) = 0; /* put in the terminating byte */
-
- return(wstr);
- }